![]() |
SndSetSysBeepState |
||||
Header: | Sound.h | Carbon status: | Supported | |
Sets the state of the system alert sound.
OSErr SndSetSysBeepState ( SInt16 sysBeepState );
The desired state of the system alert sound.
A result code.
You can use the SndSetSysBeepState function to temporarily disable the system alert sound while you play a sound and then enable the alert sound when you are done. The sysBeepState parameter should be set to either sysBeepDisable or sysBeepEnable.
If your application disables the system alert sound, be sure to enable it when your application gets a suspend event.
You can call the SndSetSysBeepState function at interrupt time.
Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.1 or later.
© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)